<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    //1: 弹窗
    //alert("Hello World")

    //2: 控制台打印
    console.log("Hello World", 123)
    
    //3: DOM
    document.write("<h2>Hello World</h2>")

    //4: 接收用户输入
    let s = prompt("请输入")
    console.log(s);
    

  </script>

</body>

</html>